package com.qinglei.recoup.system.dao;

import com.qinglei.recoup.system.domain.BedHealthBreathDailyData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qinglei.recoup.system.domain.HealthSearchQO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @author dqh
 */
public interface BedHealthBreathDailyDataMapper extends BaseMapper<BedHealthBreathDailyData> {

    BedHealthBreathDailyData getHealthReport(@Param("p")HealthSearchQO healthSearchQO);

    List<Map<String, Object>> getHealthReportListOneWeek(@Param("bedId")Integer bedId);

    BedHealthBreathDailyData selectByDate(@Param("bedId")Integer bedId, @Param("date")LocalDate statisticsDate);

}
